Skip to content

Configure outbound services for external connections from the node

Request

Update services configuration for a node (appliance or agent)


Note: request body will be validated by JSON schema of the plugin

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

Bodyapplication/jsonrequired

Config body

servicesArray of objects
Example:
[ { "description": "nginx", "enabled": true, "host": "127.0.0.1", "id": "1e1d36b2-63b6-46bb-8334-a80a828afb5f", "name": "nginx", "port": 80, "protocol": "tcp" } ]
curl -i -X PUT \
  'https://apidocs.trustgrid.io/_mock/node/{nodeID}/config/services' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "services": [
      {
        "description": "nginx",
        "enabled": true,
        "host": "127.0.0.1",
        "id": "1e1d36b2-63b6-46bb-8334-a80a828afb5f",
        "name": "nginx",
        "port": 80,
        "protocol": "tcp"
      }
    ]
  }'

Responses

OK